#ifndef _CBARRA_H
#define _CBARRA_H

#include "CEntity.h"
#include "CBola.h"
#include "CItem.h"
#include "BolasRestantes.h"

class CBarra : public CEntity {
	
	private:
		bool moveLeft;
		bool moveRight;
		int alturaBarra;
		int larguraBarra;
		int barraType;
		SDL_Surface* barraGrande;
		SDL_Surface* barraPequena;

		void applyEffects();

	public:
		CBarra();

		void setMoveLeft();
		void setMoveRight();
		void setNoMove();
		int  getAlturaBarra();
		int  getLarguraBarra();
		void gotItem(int itemType);
		void setBarraType(int type);
		void createItemDesc(CItem *pItem);

		//Overrided from CEntity
		bool onLoad(char *file);
		bool onLoad(int type, char *file);
		void onRender(SDL_Surface*);
		void onMove();
		void onLoop();
		void onCleanup();
};

#endif